package com.dyava.dycache.core;


/**
 * 缓存数据包裹
 */
public class CacheWrap {
	/**
	 * 数据
	 */
	Object data;
	/**
	 * 超时截止
	 */
	long expireAt;
	/**
	 * 数据版本
	 */
	String version;	//UUID格式

	public CacheWrap() {
	}
	
	public CacheWrap(Object data, long expireAt) {
		this.data = data;
		this.expireAt = expireAt;
	}
	
	public CacheWrap(Object data, long expireAt, String version) {
		this.data = data;
		this.expireAt = expireAt;
		this.version = version;
	}

	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public long getExpireAt() {
		return expireAt;
	}
	public void setExpireAt(long expireAt) {
		this.expireAt = expireAt;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}

}
